
/**
 * 我的课程
 * @returns
 */
export const useFindMyCoursePageApi = (body) => {
    return useHttpPost("/v1/user/center/course/list",{body})
}


/**
 * 收藏课程
 * @returns
 */
export const useFindCourseUserFavPageApi = (body) => {
    return useHttpPost("/v1/user/center/course/fav",{body})
}

/**
 * 喜欢课程
 * @returns
 */
export const useFindCourseUserLikePageApi = (body) => {
    return useHttpPost("/v1/user/center/course/like",{body})
}

/**
 * 足迹课程
 * @returns
 */
export const useFindMyCoursesBroswerPageApi = (body) => {
    return useHttpPost("/v1/user/center/course/broswer",{body})
}

/**
 * 清单课程
 * @returns
 */
export const useFindMyCourseItemsPageApi = (body) => {
    return useHttpPost("/v1/user/center/course/items",{body})
}


/**
 * 取消收藏
 * @returns
 */
export const useCancelFavCourseApi = (id) => {
    return useHttpPost(`/v1/user/center/course/cancel/favc?id=${id}`,{})
}

/**
 * 取消点赞
 * @returns
 */
export const useCanceLikeCourseApi = (id) => {
    return useHttpPost(`/v1/user/center/course/cancel/like?id=${id}`,{})
}

/**
 * 删除课程清单
 * @returns
 */
export const useCancelListCourseApi = (id) => {
    return useHttpPost(`/v1/user/center/course/remove/items?id=${id}`,{})
}


/**
 * 删除浏览记录
 * @returns
 */
export const useRemoveCourseHitsApi = (id) => {
    return useHttpPost(`/v1/user/center/course/remove/broswer?id=${id}`,{})
}
